#include <stdio.h>
#include <stdlib.h>

#include "./lib/bmp.h"

int main(int argc, char *argv[])
{
    if (argc < 3) exit(1);
    
    // Inicializo el stream de entrada.
    FILE* inStream = fopen(argv[2],"rb");
    if (NULL == inStream) exit(1);
    
    // Inicializo el stream de salida.
    FILE* outStream = fopen(argv[1],"wb+");
    if (NULL == outStream) exit(1);

    // Inicializo los parametros de transformacion.
    tOptTransform optTrans;
    initOptions(&optTrans, argv[3]);
    
    // Aplico la transformacion.
    // transformarBMP (outStream, inStream, optTrans);
    
    copyFile(outStream, inStream);
    
    fclose(outStream);
    fclose(inStream);
    
    printf("Finalizacion Exitosa\n");
    exit(0);
}
